package com.zhanggm.starter.uploader;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration //xml<bean class="com.zhanggm.starter.uploader.FileProperties">
@ConfigurationProperties(prefix = "file") //application.properties配置文件属性
@Getter
@Setter
public class FileProperties {
    //文件的保存目录
    private String path;
    //访问图片的前缀 http://localhost:8080/
    private String domain;
    //starter中FileService是否实例化的开关
    private boolean enable;
}
